xenpm: assorted adjustments
authorJan Beulich <jbeulich@suse.com>
Tue, 10 Jan 2012 16:24:50 +0000 (16:24 +0000)
committerJan Beulich <jbeulich@suse.com>
Tue, 10 Jan 2012 16:24:50 +0000 (16:24 +0000)
commit0e6f8cfd47ce649b0b633f9c03cea2108640de6a
tree7600a6af849a590d5dbb69de07c69041fe4de4cf
parent004d103be6131eba8596fed489dc3d64a87ad0ef
xenpm: assorted adjustments

- use consistent error values (stop mixing of [positive] errno values
  with literal -E... ones)
- properly format output
- don't use leading zeros in decimal output
- move printing of average frequency into P-state conditional (rather
  than a C-state one)
- don't print some C-state related info when CPU idle management is
  disabled in the hypervisor
- use calloc() for array allocations that also got cleared via memset()
  so far

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/misc/xenpm.c